home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.5 KB | 57 lines | [TEXT/GEOL] |
- Item 2002745 28-June-88 09:06
-
- From: D0795 Double Centre Surveying, Dev
-
- To: WILSON6 Wilson, Dave - Personal Concepts
-
- cc: MACAPP$ MacApp Interest List
-
- Sub: 101-just a silly method longer
-
- Dave,
-
- I disagree with your statement that any class that has 100 methods (or more) is
- too large. I MAY agree with the statment about reusability.
-
- Any limit set on the number of methods is by definition going to be arbitrary
- unless the specific application it will be used for the creation of is known
- about before seeting those limits. I feel that these limitations should not be
- imposed in order to 'enforce' good programming style, reusability of code, or
- any other rationalization for an artificially low limit.
-
- Similar arguments can be made for limiting segment sizes to 32k, although I
- feel there are cases where this limit can be justified (not rationalized.)
-
- My main argument is that at some point in the 'tree' of objects youy reach a
- 'leaf' level. Should we have to make another 'branch' just so our existing
- 'branch' doesn't get to heavy with 'leaves' ? I don't think so. I think that
- almost any limit to the number of methods could be agrued about (give them an
- inch…) but I think that the limitations put on us by setting the number of
- methods at 100 is too low.
-
- Remember that Object Pascal is a hybrid that is supposed to make things easier.
- We are supposed to be able to code quicker. We are not supposed to have to
- re-design or classes just because we passed some imaginary line ! The reason
- that Apple stuck with an existing language instead of going to another was to
- make the transition as painless as possible while preserving the ability to use
- procedural approaches when they make the best sense.
-
- I want to write the code that best fits MY needs not the needs of a language
- designer. I want to produce applications NOT examples of 'good' object-oriented
- programming.
-
- I didn't intend to get up on a soapbox but this limit was a rael problem for us
- at a point when we were about to ship the first version of a new product. We
- lost a couple of weeks to it.
-
- Thanx,
- John D. Olsen, RPS
-
- P.S. Dave Wilson probably knows quite alot more than I do about Object-Oriented
- Programming. His points are well taken for MOST cases.
-
- P.S.S Senior Bianchi's point about the limitation's being in the compiler is
- correct. I incorrectly stated that it was related to MacApp which is not
- correct. I stand corrected.
-
-